﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IDiaoDongService”。
    [ServiceContract]
    public interface IDiaoDongService
    {
        [OperationContract]
        ObservableCollection<DiaoDongModel> GetDiaoDong(string OrgIDs, int id, string diaochubenqu, string niandu, string banlizhuangtai);
        [OperationContract]
        bool AddDiaoDong(DiaoDongModel model);
        [OperationContract]
        bool UpdateDiaoDong(DiaoDongModel model);
        [OperationContract]
        bool ShenHeDiaoDong(int id, string status, DiaoDongModel model);
        [OperationContract]
        bool CancelShenHeDiaoDong(int id, string status);
        [OperationContract]
        bool TuiHuiShenHeDiaoDong(int id, string status, DiaoDongModel model);
        [OperationContract]
        void ChaRuRenYuanKu(DiaoDongModel model);
        [OperationContract]
        bool DeleteShenHeDiaoDong(int id);
        [OperationContract]
        bool CanShenHeDiaoDong(DiaoDongModel model);
        [OperationContract]
        bool TongYiDiaoDong(int id, string status);

        #region 整建制转入
         [OperationContract]
        ObservableCollection<ZJZZRModel> GetZJZZRModel(string con, int index, int pagesize);
         [OperationContract]
        int GetZJZZRModelCount(string con);
         [OperationContract]
        bool AddZJZZR(ZJZZRModel model);
        [OperationContract]
         bool AddZJZZR_EMP(List<ZJZZR_Emp> models);
         [OperationContract]
        ObservableCollection<ZJZZR_Emp> GetZJZZR_Emp(string con, int index, int pagesize);
          [OperationContract]
         bool SBZJZZR_EMP(ZJZZR_Emp model);
         [OperationContract]
          bool QRZR(string con);
        #endregion
    }
}
